<?php
$this->breadcrumbs = array(
    'MLM System',
    'Activation Cards' => array('list'),
    'Detail Data '.$model->serial_id,
);

$this->menu = array();

//action list
array_push($this->menu, array('label' => 'List of Activation Cards', 'url' => array('list')));

//action create
/*
if (Yii::app()->user->administrator_group_type == 'superuser') {
    array_push($this->menu, array('label' => 'Generate Activation Cards', 'url' => array('create')));
}
*/
?>
<div class="flat_area grid_16">
    <h2>Detail Activation Cards</h2>
</div>
<div class="box grid_16 round_all">
    <h2 class="box_head grad_colour">Data Detail</h2>
    <a href="#" class="grabber">&nbsp;</a>
    <a href="#" class="toggle">&nbsp;</a>
    <div class="toggle_container">
        <div class="block no_padding">
            <?php
            $this->widget('zii.widgets.CDetailView', array(
                'data' => $model,
                'attributes' => array(
                    'serial_id',
                    array(
                        'label' => $model->getAttributeLabel('rel_serial_to_serial_type.serial_type_name'),
                        'value' => $model->rel_serial_to_serial_type->serial_type_name,
                    ),
                    'serial_pin',
                    'serial_create_datetime',
                    array(
                        'label' => $model->getAttributeLabel('serial_is_active'),
                        'value' => $model->serial_is_active == 1 ? 'Ya' : 'Tidak',
                    ),
                ),
                'htmlOptions' => array('class' => 'detail'),
            ));
            ?>
        </div>
    </div>
</div>